<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'memberCard.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
   
    <form action="cashierDesk!memberCard.do" method="post">
<!-- <input class="input" type="hidden" name="pdata[t_member_id]" value="154895" data-validate="required:必填">
<input class="input" type="hidden" name="pdata[parent_id]" value=""> -->
<input class="input" id="cardBalance" type="hidden" name="cardBalance" value="${tam.cardBalance }">
<input class="input"  type="hidden" name="orderSn" value="${orderSn }">
<input class="input"  type="hidden" name="memberId" value="${tam.id.memberId }">
<input class="input"  type="hidden" name="integral" value="${integral }">


<div class="dialog open">
    <div class="dialog-head">
      <span class="close rotate-hover"></span>
      <strong>正在使用会员卡余额支付(<span id="dingdanhao">${orderSn }</span>)</strong>
    </div>
    <div class="dialog-body line">
        <div class="x12 over-auto " style="height: 300px;">
            <div class="x4 bg">
                <div class="x12 form-group">
                    <div class="x3 text-right padding-right height-big cashier-card-pay-t">
                        <label><strong>姓名</strong></label>
                    </div>
                    <div class="x8 padding-large-right cashier-card-pay-c">
                        <div class="input-group input border-white">
                           ${tam.memberName } </div>
                    </div>
                </div>
                <div class="x12 form-group">
                    <div class="x3 text-right padding-right height-big cashier-card-pay-t">
                        <label><strong>手机</strong></label>
                    </div>
                    <div class="x8 padding-large-right cashier-card-pay-c">
                        <div class="input-group input border-white">
                            ${tam.memberPhone } </div>
                    </div>
                </div>
                <div class="x12 form-group">
                    <div class="x3 text-right padding-right height-big cashier-card-pay-t">
                        <label><strong>卡号</strong></label>
                    </div>
                    <div class="x8 padding-large-right cashier-card-pay-c">
                        <div class="input-group input border-white">
                            ${tam.memberCard }  </div>
                    </div>
                </div>
                <div class="x12 form-group">
                    <div class="x3 text-right padding-right height-big cashier-card-pay-t">
                        <label><strong>余额</strong></label>
                    </div>
                    <div class="x9 padding-large-right cashier-card-pay-c">
                        <div class="input-group input border-white">
                            ${tam.cardBalance }      </div>
                    </div>
                </div>
                                            </div>

            <div class="x8 ">
                <!-- <input type="hidden" name="pdata[pay_id]" value="266337"> -->

                <div class="x12 form-group">
                    <div class="x4 text-right padding-right height-big">
                        <label><strong>应收金额</strong></label>
                    </div>
                    <div class="x8 padding-large-right">
                        <div class="input-group input border-white" id="wxzfmoney">
                            ${moneyNum }元                        </div>
                    </div>
                </div>
                <!-- <div class="x12 form-group">
                    <div class="x4 text-right padding-right height-big">
                        <label><strong>其它方式已收</strong></label>
                    </div>
                    <div class="x8 padding-large-right">
                        <div class="input-group input border-white">
                            0.00元                        </div>
                    </div>
                </div> -->
                <div class="x12 form-group ">
                    <div class="x4 text-right padding-right height-big">
                        <label><strong>赠送积分</strong></label>
                    </div>
                    <div class="x8 padding-large-right">
                        <div class="input-group input border-white">
                            ${integral }分                        </div>
                    </div>
                </div>
                <div class="x12 form-group">
                    <div class="x4 text-right padding-right height-big">
                        <label><span class="text-dot">*</span><strong>实收金额</strong></label>
                    </div>
                    <div class="x8 padding-large-right">
                        <div class="input-group">
                            <input class="input" type="text" id="moneyNum" name="moneyNum" placeholder="如:8888.00" value="${moneyNum }" readonly>
                            <span class="addon">元</span>
                        </div>
                    </div>
                </div>
                                            </div>
        </div>
    </div>
    <div class="dialog-foot">
      <button class="button dialog-close" type="button">关闭</button>
      <button id="queRen" type="submit" class="button bg-green"> 确认 </button>
    </div>
  </div>
</form>
<script type="text/javascript">
//会员卡余额支付支付推送
/*             var cpuhao=navigator.userAgent;
            if(cpuhao.indexOf('GangHengKeJi')>=0){
                var weixin='<div class="x12  padding-big"><div class="x12 text-left text-black"><h1>正在使用会员卡余额支付...</h1></div><div class="x12 text-left margin-top">订单号：'+$('#dingdanhao').text()+'</div></div><div class="x12 padding-big-top border-top border-big"><h1 class="text-red">卡余额支付：'+$('#wxzfmoney').text()+'</h1></div>';
                JS_FK._cr(weixin,'tuisongleirong4');
            }
function scode_time() {
    clearTimeout(xtimeobj);
    var djs = parseInt($('#get_sms').children('#time_djs').text());
    //console.info(djs);
    if (isNaN(djs)) {
        //console.info();
        $('#get_sms').prop('disabled',true).html('<span id="time_djs">1</span>秒后重新获取');
        var xtimeobj = setTimeout(scode_time, 1000);
    } else {
        var djs_str = djs - 1;
        if (djs_str > 0) {
            $('#get_sms').html('<span id="time_djs">' + djs_str + '</span>秒后重新获取');
            var xtimeobj = setTimeout(scode_time, 1000);
        } else {
            $('#get_sms').html('获取短信验证码').prop('disabled',false);
        }
    }
} */
/* function getCaptcha(xthis) {
    //点击获取验证码
    var djs = $(xthis).prop('disabled');
    //console.info(djs);
    if (djs==false) {
        scode_time();
        var get_url = $(xthis).attr('data-url');
        $.get(get_url, function(data) {
            $.Showmsg(data.info);
            if (data.status == 'y') {
                setTimeout(function() {
                    $.Hidemsg();
				}, 2000);
            }else{
             setTimeout(function() {
                    $.Hidemsg();
				}, 5500);
            }
        }, 'json');
        $('#member-password').focus();
    } else {
        //console.info('no');
        return false;
    }
} */

$(function(){
	var yingShou = $("#moneyNum").val();
	var yuE = $("#cardBalance").val();
	if (Number(yuE)<Number(yingShou)) {
		$("#queRen").attr({"disabled":"disabled"});
		$.Showmsg("您的会员卡余额不足,请选择其他支付方式！");
		
	}
});



$(function(){
    $('#member-password').focus();
});
</script>
  </body>
</html>
